package cn.qidisoft.edu.hzjt.service.zyc.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.qidisoft.core.common.log.LoggerAdapter;
import cn.qidisoft.core.common.log.LoggerAdapterFactory;
import cn.qidisoft.edu.hzjt.dao.zyc.StudentMapper;
import cn.qidisoft.edu.hzjt.model.Student;
import cn.qidisoft.edu.hzjt.service.zyc.IStudentService;
import cn.qidisoft.edu.hzjt.utils.LogType;

@Service
@Transactional
public class StudentServiceImpl implements IStudentService {
	protected static final LoggerAdapter LOGGER = LoggerAdapterFactory.getLogger(LogType.HZJT_LOGGER.val);
	@Autowired
	private StudentMapper studentMapper;

	@Override
	public List<Student> selStudent() {
		return studentMapper.getStuList();
	}

	@Override
	public Student queryByPK(Integer stuid) {
		return studentMapper.queryByPK(stuid);
	}

	// 查学生传id集合
	@Override
	public List<Student> queryStudentByIds(List<Integer> stuid) {
		return studentMapper.queryStudentByIds(stuid);
	}
    
	@Override
	public List<Student> queryAllStu() {
		
		return studentMapper.queryAllStu();
	}

}
